class getImage {

	//获取到图片数据
	DgetimageArr(imageArr) {
		let newimageArr = [];
		imageArr.forEach(image => {
			let newImage = {
				pictureId: image.pictureId,
				pictureName: image.pictureName,
				picturePath: image.picturePath,
				pictureReducedPath: image.pictureReducedPath,
				uploadTime: image.uploadTime,
				isShared: image.isShared
			}
			newimageArr.push(newImage)
		})
		return newimageArr
	}

	//提交移动相册
	CmoveImage(imageArr, toAblumId) {
		return {
			"Method": "MOVE",
			"PicturesId": imageArr,
			"ToAblumId": toAblumId
		}
	}

	//提交设为私密
	CmovePrivate(imageArr) {
		return {
			"Method": "PRIVATE",
			"PicturesId": imageArr
		}
	}

	//提交取消私密
	CmoveOutPrivate(imageArr) {
		return {
			"Method": "NOTPRIVATE",
			"PicturesId": imageArr
		}
	}

	//提交设为分享
	Cshare(imageArr) {
		return {
			"Method": "SHARE",
			"PicturesId": imageArr
		}
	}
	//获取分享后的结果
	Dshare(image){
		return{
			
		}
	}

	//提交设为分享
	CcancelShare(imageArr) {
		return {
			"Method": "NOTSHARE",
			"PicturesId": imageArr
		}
	}

	//提交永久删除
	Cdelted(imageArr) {
		return {
			"Method": "REMOVE",
			"PicturesId": imageArr
		}
	}

	//提交删除至回收站
	Crecycle(imageArr) {
		return {
			"Method": "MOVETORECYLE",
			"PicturesId": imageArr
		}
	}

	//提交修改照片信息
	CreviseImage(imageId, imageName) {
		return {
			"PictureId": imageId,
			"PictureName": imageName
		}
	}
	//提交恢复照片至原来相册
	Creback(imageArr){
		return{
			"PicturesId":imageArr
		}
	}

	

}
export default getImage;
